package nl.rainbowsheep.reisorg.cust.site.controller;

import java.util.List;
import nl.rainbowsheep.reisorg.cust.site.model.Country;
import nl.rainbowsheep.reisorg.cust.site.service.CountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value="/country")
public class CountryController {
    
    @Autowired
    private CountryService countryService;
    
    @RequestMapping(value="/getall")
    public @ResponseBody List<Country> getAll() {
        return countryService.getAll();
    }
    
}
